From f35ec11578afb6175447d838d8fcbdb25ac15fb4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 12 Jul 2014 05:32:12 +0200 Subject: [PATCH] label: Include all of the allocation in the clip Otherwise, the CSS background we draw would be clipped if the ink rect was smaller than the allocation (a very common thing). Broken since 37030a771059f43ad701700380719d19cbc7c966 where we clipped to the ink rect. --- gtk/gtklabel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 3c64322110..17b4ca31a3 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3996,6 +3996,7 @@ gtk_label_size_allocate (GtkWidget *widget, } gtk_label_get_ink_rect (label, &clip_rect); + gdk_rectangle_union (&clip_rect, allocation, &clip_rect); gtk_widget_set_clip (widget, &clip_rect); } -- 2.30.2